import { createStore, Store } from 'vuex'
import { InjectionKey } from 'vue'
interface State {
  count: number
}
export const key: InjectionKey<Store<State>> = Symbol()
const store = createStore<State>({
  state() {
    return { count: 5 }
  },
  mutations: {
    increment(state) {
      state.count++
    },
  },
})
export { store }
